public class LabeledFor {
    public static void main(String[] args) {
        int i = 0;
        outer:
        for (i = 0; i < 10; i++) {
            inner:
            for (int j = 0; j < 10; j++) {
                if (j == i) {
                    System.out.println();
                    continue outer;
                } else if (j == 5) {
                    System.out.println();
                    break inner;
                }
                System.out.print("i&j: " + i + " " + j + "  ");
            }
        }
    }
}
